package io.gitee.devaper.starlight.module.room.entity.param

import io.gitee.devaper.starlight.module.room.constant.*
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Pattern

/**
 * 验证房间密码需要提供的参数
 */
data class VerifyRoomPwdParam(

    /**
     * 房间ID
     */
    @field:NotBlank(message = "{$MS_ROOM_VALIDATION_ID_REQUIRES}")
    val rid: String,

    /**
     * 房间密码
     */
    @field:NotNull(message = "{$MS_ROOM_VALIDATION_PASSWORD_REQUIRES}")
    @field:Pattern(regexp = ROOM_PASSWORD_PATTERN, message = "{$MS_ROOM_VALIDATION_PASSWORD_FORMAT_MISMATCH}")
    val pwd: String

)
